package edu.zut.cs.software.example.student.service;


import java.util.HashMap;

import edu.zut.cs.software.example.QueryInfo.QueryInfo;
import edu.zut.cs.software.example.service.GenericManager;
import edu.zut.cs.software.example.student.domain.Student;


/**
 *
 * @author chen ming yang
 * 
 */
public interface StudentManager extends GenericManager<Student, Long> {

	/**
	 *  Provide login services
	 * @param student
	 * @return student
	 */
	public Student loginService(Student student);
	
	
	/**
	 * Provides access to information about classmates
	 * @param queryInfo
	 * @return HashMap
	 */
	public HashMap<String, Object> getClassmatesService(QueryInfo queryInfo);
	
	/**
	 * Provides an ID lookup service for editing student information
	 * @param id
	 * @return Student
	 */
	public  Student getUpdateStuService(int id);
	
	public int editStuInfoService(Student student);
	
	public HashMap<String,Object> getUserInfo(String userId);
	
	public Student getStudent(String userId);


	public boolean findByuserId(String userId);


	public Student adduser(Student student);

}
